package com.zzxy.spring2.service.impl;

import com.zzxy.spring2.dao.IAccountDao;
import com.zzxy.spring2.service.IAccountService;




public class AccountServiceImpI implements IAccountService {

    private IAccountDao accountDao;
    private Object Propagation;


    public IAccountDao getAccountDao() {
        return accountDao;
    }

    public void setAccountDao(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    @Transactional(isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED)
    public void transer(String outer, String inner, int money) {
        accountDao.out(outer,money);
     //   int i = 1 / 0;
        accountDao.in(inner,money);
    }
}